package net.destroyer.game.tetris.core.shape;

import java.util.ArrayList;
import java.util.List;

import javax.media.j3d.BranchGroup;

import net.destroyer.game.tetris.core.shape.cube.GameCube;
import net.destroyer.game.tetris.core.util.RefferencePoint;

public abstract class GameCubes extends BranchGroup {
	protected List<GameCube> cubes;

	public GameCubes() {
		this.cubes = new ArrayList<GameCube>();
	}

	public List<RefferencePoint> getRefPoints() {
		List<RefferencePoint> ret = new ArrayList<RefferencePoint>();
		for (GameCube cube : cubes) {
			ret.add(cube.getRefPoint());
		}
		return ret;
	}

}
